package com.ecoolex.ying.space.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class UserWorksCommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public UserWorksCommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public UserWorksCommentExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public UserWorksCommentExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        UserWorksCommentExample example = new UserWorksCommentExample();
        return example.createCriteria();
    }

    public UserWorksCommentExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public UserWorksCommentExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public UserWorksCommentExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public UserWorksCommentExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public UserWorksCommentExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCommentIdIsNull() {
            addCriterion("userworkscomment.CommentId is null");
            return (Criteria) this;
        }

        public Criteria andCommentIdIsNotNull() {
            addCriterion("userworkscomment.CommentId is not null");
            return (Criteria) this;
        }

        public Criteria andCommentIdEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentId =", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentIdNotEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentId <>", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThan(Integer value) {
            addCriterion("userworkscomment.CommentId >", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentId >=", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThan(Integer value) {
            addCriterion("userworkscomment.CommentId <", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentId <=", value, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentIdIn(List<Integer> values) {
            addCriterion("userworkscomment.CommentId in", values, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotIn(List<Integer> values) {
            addCriterion("userworkscomment.CommentId not in", values, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.CommentId between", value1, value2, "commentId");
            return (Criteria) this;
        }

        public Criteria andCommentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.CommentId not between", value1, value2, "commentId");
            return (Criteria) this;
        }

        public Criteria andWorksIdIsNull() {
            addCriterion("userworkscomment.WorksId is null");
            return (Criteria) this;
        }

        public Criteria andWorksIdIsNotNull() {
            addCriterion("userworkscomment.WorksId is not null");
            return (Criteria) this;
        }

        public Criteria andWorksIdEqualTo(Integer value) {
            addCriterion("userworkscomment.WorksId =", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdNotEqualTo(Integer value) {
            addCriterion("userworkscomment.WorksId <>", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdGreaterThan(Integer value) {
            addCriterion("userworkscomment.WorksId >", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.WorksId >=", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdLessThan(Integer value) {
            addCriterion("userworkscomment.WorksId <", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.WorksId <=", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdIn(List<Integer> values) {
            addCriterion("userworkscomment.WorksId in", values, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdNotIn(List<Integer> values) {
            addCriterion("userworkscomment.WorksId not in", values, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.WorksId between", value1, value2, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.WorksId not between", value1, value2, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdIsNull() {
            addCriterion("userworkscomment.WorksUserId is null");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdIsNotNull() {
            addCriterion("userworkscomment.WorksUserId is not null");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdEqualTo(Integer value) {
            addCriterion("userworkscomment.WorksUserId =", value, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksUserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksUserIdNotEqualTo(Integer value) {
            addCriterion("userworkscomment.WorksUserId <>", value, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksUserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksUserIdGreaterThan(Integer value) {
            addCriterion("userworkscomment.WorksUserId >", value, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksUserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.WorksUserId >=", value, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksUserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksUserIdLessThan(Integer value) {
            addCriterion("userworkscomment.WorksUserId <", value, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksUserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.WorksUserId <=", value, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.WorksUserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksUserIdIn(List<Integer> values) {
            addCriterion("userworkscomment.WorksUserId in", values, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdNotIn(List<Integer> values) {
            addCriterion("userworkscomment.WorksUserId not in", values, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.WorksUserId between", value1, value2, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andWorksUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.WorksUserId not between", value1, value2, "worksUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdIsNull() {
            addCriterion("userworkscomment.CommentUserId is null");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdIsNotNull() {
            addCriterion("userworkscomment.CommentUserId is not null");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentUserId =", value, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentUserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentUserIdNotEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentUserId <>", value, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentUserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentUserIdGreaterThan(Integer value) {
            addCriterion("userworkscomment.CommentUserId >", value, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentUserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentUserId >=", value, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentUserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentUserIdLessThan(Integer value) {
            addCriterion("userworkscomment.CommentUserId <", value, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentUserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentUserId <=", value, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentUserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentUserIdIn(List<Integer> values) {
            addCriterion("userworkscomment.CommentUserId in", values, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdNotIn(List<Integer> values) {
            addCriterion("userworkscomment.CommentUserId not in", values, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.CommentUserId between", value1, value2, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andCommentUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.CommentUserId not between", value1, value2, "commentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdIsNull() {
            addCriterion("userworkscomment.BeCommentUserId is null");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdIsNotNull() {
            addCriterion("userworkscomment.BeCommentUserId is not null");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdEqualTo(Integer value) {
            addCriterion("userworkscomment.BeCommentUserId =", value, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.BeCommentUserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdNotEqualTo(Integer value) {
            addCriterion("userworkscomment.BeCommentUserId <>", value, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.BeCommentUserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdGreaterThan(Integer value) {
            addCriterion("userworkscomment.BeCommentUserId >", value, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.BeCommentUserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.BeCommentUserId >=", value, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.BeCommentUserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdLessThan(Integer value) {
            addCriterion("userworkscomment.BeCommentUserId <", value, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.BeCommentUserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.BeCommentUserId <=", value, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.BeCommentUserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdIn(List<Integer> values) {
            addCriterion("userworkscomment.BeCommentUserId in", values, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdNotIn(List<Integer> values) {
            addCriterion("userworkscomment.BeCommentUserId not in", values, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.BeCommentUserId between", value1, value2, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andBeCommentUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.BeCommentUserId not between", value1, value2, "beCommentUserId");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("userworkscomment.Content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("userworkscomment.Content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("userworkscomment.Content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Content = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("userworkscomment.Content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Content <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("userworkscomment.Content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Content > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("userworkscomment.Content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Content >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("userworkscomment.Content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Content < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("userworkscomment.Content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Content <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("userworkscomment.Content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("userworkscomment.Content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("userworkscomment.Content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("userworkscomment.Content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("userworkscomment.Content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("userworkscomment.Content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andImageIsNull() {
            addCriterion("userworkscomment.Image is null");
            return (Criteria) this;
        }

        public Criteria andImageIsNotNull() {
            addCriterion("userworkscomment.Image is not null");
            return (Criteria) this;
        }

        public Criteria andImageEqualTo(String value) {
            addCriterion("userworkscomment.Image =", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Image = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageNotEqualTo(String value) {
            addCriterion("userworkscomment.Image <>", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Image <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageGreaterThan(String value) {
            addCriterion("userworkscomment.Image >", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Image > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualTo(String value) {
            addCriterion("userworkscomment.Image >=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Image >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLessThan(String value) {
            addCriterion("userworkscomment.Image <", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Image < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualTo(String value) {
            addCriterion("userworkscomment.Image <=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Image <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andImageLike(String value) {
            addCriterion("userworkscomment.Image like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotLike(String value) {
            addCriterion("userworkscomment.Image not like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageIn(List<String> values) {
            addCriterion("userworkscomment.Image in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotIn(List<String> values) {
            addCriterion("userworkscomment.Image not in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageBetween(String value1, String value2) {
            addCriterion("userworkscomment.Image between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotBetween(String value1, String value2) {
            addCriterion("userworkscomment.Image not between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andPraseCountIsNull() {
            addCriterion("userworkscomment.PraseCount is null");
            return (Criteria) this;
        }

        public Criteria andPraseCountIsNotNull() {
            addCriterion("userworkscomment.PraseCount is not null");
            return (Criteria) this;
        }

        public Criteria andPraseCountEqualTo(Integer value) {
            addCriterion("userworkscomment.PraseCount =", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.PraseCount = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPraseCountNotEqualTo(Integer value) {
            addCriterion("userworkscomment.PraseCount <>", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.PraseCount <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPraseCountGreaterThan(Integer value) {
            addCriterion("userworkscomment.PraseCount >", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.PraseCount > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPraseCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.PraseCount >=", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.PraseCount >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPraseCountLessThan(Integer value) {
            addCriterion("userworkscomment.PraseCount <", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.PraseCount < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPraseCountLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.PraseCount <=", value, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.PraseCount <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andPraseCountIn(List<Integer> values) {
            addCriterion("userworkscomment.PraseCount in", values, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountNotIn(List<Integer> values) {
            addCriterion("userworkscomment.PraseCount not in", values, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.PraseCount between", value1, value2, "praseCount");
            return (Criteria) this;
        }

        public Criteria andPraseCountNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.PraseCount not between", value1, value2, "praseCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountIsNull() {
            addCriterion("userworkscomment.CommentCount is null");
            return (Criteria) this;
        }

        public Criteria andCommentCountIsNotNull() {
            addCriterion("userworkscomment.CommentCount is not null");
            return (Criteria) this;
        }

        public Criteria andCommentCountEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentCount =", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentCount = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentCountNotEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentCount <>", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentCount <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentCountGreaterThan(Integer value) {
            addCriterion("userworkscomment.CommentCount >", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentCount > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentCount >=", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentCount >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentCountLessThan(Integer value) {
            addCriterion("userworkscomment.CommentCount <", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentCount < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentCountLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.CommentCount <=", value, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CommentCount <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCommentCountIn(List<Integer> values) {
            addCriterion("userworkscomment.CommentCount in", values, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountNotIn(List<Integer> values) {
            addCriterion("userworkscomment.CommentCount not in", values, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.CommentCount between", value1, value2, "commentCount");
            return (Criteria) this;
        }

        public Criteria andCommentCountNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.CommentCount not between", value1, value2, "commentCount");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdIsNull() {
            addCriterion("userworkscomment.LastCommentId is null");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdIsNotNull() {
            addCriterion("userworkscomment.LastCommentId is not null");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdEqualTo(Integer value) {
            addCriterion("userworkscomment.LastCommentId =", value, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.LastCommentId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastCommentIdNotEqualTo(Integer value) {
            addCriterion("userworkscomment.LastCommentId <>", value, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.LastCommentId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastCommentIdGreaterThan(Integer value) {
            addCriterion("userworkscomment.LastCommentId >", value, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.LastCommentId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastCommentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.LastCommentId >=", value, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.LastCommentId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastCommentIdLessThan(Integer value) {
            addCriterion("userworkscomment.LastCommentId <", value, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.LastCommentId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastCommentIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.LastCommentId <=", value, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.LastCommentId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLastCommentIdIn(List<Integer> values) {
            addCriterion("userworkscomment.LastCommentId in", values, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdNotIn(List<Integer> values) {
            addCriterion("userworkscomment.LastCommentId not in", values, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.LastCommentId between", value1, value2, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andLastCommentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.LastCommentId not between", value1, value2, "lastCommentId");
            return (Criteria) this;
        }

        public Criteria andReplyIdIsNull() {
            addCriterion("userworkscomment.ReplyId is null");
            return (Criteria) this;
        }

        public Criteria andReplyIdIsNotNull() {
            addCriterion("userworkscomment.ReplyId is not null");
            return (Criteria) this;
        }

        public Criteria andReplyIdEqualTo(Integer value) {
            addCriterion("userworkscomment.ReplyId =", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.ReplyId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReplyIdNotEqualTo(Integer value) {
            addCriterion("userworkscomment.ReplyId <>", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.ReplyId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReplyIdGreaterThan(Integer value) {
            addCriterion("userworkscomment.ReplyId >", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.ReplyId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReplyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.ReplyId >=", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.ReplyId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReplyIdLessThan(Integer value) {
            addCriterion("userworkscomment.ReplyId <", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.ReplyId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReplyIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.ReplyId <=", value, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.ReplyId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andReplyIdIn(List<Integer> values) {
            addCriterion("userworkscomment.ReplyId in", values, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdNotIn(List<Integer> values) {
            addCriterion("userworkscomment.ReplyId not in", values, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.ReplyId between", value1, value2, "replyId");
            return (Criteria) this;
        }

        public Criteria andReplyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.ReplyId not between", value1, value2, "replyId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdIsNull() {
            addCriterion("userworkscomment.AuditRecordId is null");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdIsNotNull() {
            addCriterion("userworkscomment.AuditRecordId is not null");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdEqualTo(Integer value) {
            addCriterion("userworkscomment.AuditRecordId =", value, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditRecordId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdNotEqualTo(Integer value) {
            addCriterion("userworkscomment.AuditRecordId <>", value, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditRecordId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdGreaterThan(Integer value) {
            addCriterion("userworkscomment.AuditRecordId >", value, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditRecordId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.AuditRecordId >=", value, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditRecordId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdLessThan(Integer value) {
            addCriterion("userworkscomment.AuditRecordId <", value, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditRecordId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.AuditRecordId <=", value, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditRecordId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdIn(List<Integer> values) {
            addCriterion("userworkscomment.AuditRecordId in", values, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdNotIn(List<Integer> values) {
            addCriterion("userworkscomment.AuditRecordId not in", values, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.AuditRecordId between", value1, value2, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditRecordIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.AuditRecordId not between", value1, value2, "auditRecordId");
            return (Criteria) this;
        }

        public Criteria andAuditStatusIsNull() {
            addCriterion("userworkscomment.AuditStatus is null");
            return (Criteria) this;
        }

        public Criteria andAuditStatusIsNotNull() {
            addCriterion("userworkscomment.AuditStatus is not null");
            return (Criteria) this;
        }

        public Criteria andAuditStatusEqualTo(Integer value) {
            addCriterion("userworkscomment.AuditStatus =", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditStatus = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotEqualTo(Integer value) {
            addCriterion("userworkscomment.AuditStatus <>", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditStatus <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditStatusGreaterThan(Integer value) {
            addCriterion("userworkscomment.AuditStatus >", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditStatus > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.AuditStatus >=", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditStatus >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditStatusLessThan(Integer value) {
            addCriterion("userworkscomment.AuditStatus <", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditStatus < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditStatusLessThanOrEqualTo(Integer value) {
            addCriterion("userworkscomment.AuditStatus <=", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.AuditStatus <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAuditStatusIn(List<Integer> values) {
            addCriterion("userworkscomment.AuditStatus in", values, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotIn(List<Integer> values) {
            addCriterion("userworkscomment.AuditStatus not in", values, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.AuditStatus between", value1, value2, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("userworkscomment.AuditStatus not between", value1, value2, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("userworkscomment.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("userworkscomment.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("userworkscomment.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("userworkscomment.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("userworkscomment.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("userworkscomment.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("userworkscomment.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("userworkscomment.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("userworkscomment.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("userworkscomment.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("userworkscomment.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("userworkscomment.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("userworkscomment.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("userworkscomment.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("userworkscomment.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("userworkscomment.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("userworkscomment.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("userworkscomment.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("userworkscomment.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("userworkscomment.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("userworkscomment.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("userworkscomment.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("userworkscomment.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("userworkscomment.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("userworkscomment.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("userworkscomment.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("userworkscomment.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("userworkscomment.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("userworkscomment.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("userworkscomment.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("userworkscomment.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("userworkscomment.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("userworkscomment.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("userworkscomment.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("userworkscomment.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("userworkscomment.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("userworkscomment.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("userworkscomment.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("userworkscomment.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("userworkscomment.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("userworkscomment.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("userworkscomment.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("userworkscomment.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("userworkscomment.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("userworkscomment.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("userworkscomment.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("userworkscomment.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("userworkscomment.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("userworkscomment.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("userworkscomment.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("userworkscomment.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("userworkscomment.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("userworkscomment.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("userworkscomment.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("userworkscomment.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("userworkscomment.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("userworkscomment.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("userworkscomment.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("userworkscomment.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("userworkscomment.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(UserWorksComment.Column column) {
            addCriterion(new StringBuilder("userworkscomment.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("userworkscomment.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("userworkscomment.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("userworkscomment.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("userworkscomment.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private UserWorksCommentExample example;

        protected Criteria(UserWorksCommentExample example) {
            super();
            this.example = example;
        }

        public UserWorksCommentExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(UserWorksComment.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(UserWorksComment.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.ying.space.entity.UserWorksCommentExample example);
    }
}